OAL - Tools and Scripts
The application is a series of tools used by OAL for automating processes through Scheduled Tasks. This is an update to what was is in the C:\Program Files\OAL folder on OAL devices. This package is mainly used for Intune, but a specific version is used in the AUTH Task Sequence.
Unlike the AUTH deployment, this package combines both the deployment of the files and the deployment of the associated Scheduled Tasks. This also contains of all the shortcut icons used for the virtualized apps.
For some reason, Intune is unable to copy directly to the C:\Program Files folder, so all the files are copied to C:\ProgramData.
Important Note
The current AUTH Task Sequence is deploying an older version than what is being deployed through Intune. This is on purpose. That version is only deploying the Files and only creating the OAL - Background Stamp Scheduled Task to be called later in the Task. This is to not interfere with the current Scheduled Task being deployed through GPO.
Table of Contents
Tools
These are the tools used by OAL for automating processes.
| Name | Scheduled Task | Description |
|---|---|---|
| Background Stamp | OAL - Background Stamp | Creates and updates the lockscreen background. |
| CheckForFlashDrive | NA | At logoff, this prompts the user if they have a removable drive left plugged in |
| ProfileCleanup | OAL - Profile Cleanup | Cleans up the user profile |
| Logit | NA | Older version of logit2. |
| Logit2 | OAL - Logit at Logoff | Updates Workstation Status on when the users logs off. This tools is also used at log on configured through a policy. |
| idlelogoff | OAL - Idle Logoff | Logs off the user when they have been idle for a set time |
| nircmd | NA |
Scripts
These are the scripts used by OAL for automating processes.
| Name | Scheduled Task | Description |
|---|---|---|
| Get-IPAddress.ps1 | OAL - Get IP Address | Get the current IP to be placed in the Network of HKLM:\Software\LSS in the Registry. This value is then collected by Workstation Status |
| Get-OALEnviromentVariables.ps1 | NA | Gets the current enviroment variables of Building, Department, OAL_CN, Role, Room and SRVComment. |
| Remove-PharosDebugFile.ps1 | OAL - Remove Pharos Debug File | Removes the Pharos log file to remediate potential errors |
| Remove-UnwantedIcons.ps1 | OAL - Remove Unwanted Icons | Removes any unwanted icons from the desktop. |
| Set-OALEnviromentVariables.ps1 | NA | Sets the current environment variables of Building, Department, OAL_CN, Role, Room and SRVComment. Mainly used to change the scope of a device without needing to image. Only recommend it to be used on DEV and TEST devices |
| Start-UNCShareMapping.ps1 | OAL - Mapping and redirection | For Intune use only. Maps the Home and Web network share of they exist of the user and redirects all the common folder (Desktop, Documents, Videos, Photos, etc) to the Home share. |
| Stop-DriverUAC.ps1 | OAL - Stop Driver UAC | Stops the UAC driver |
Scheduled Tasks
Each Scheduled Task is deployed during the install of the application. If the Task(s) is out of date based on the Version. Each Task is individually changed so it changes are isolated.
| Name | Version | Principal | Trigger | Action |
|---|---|---|---|---|
| OAL - Background Stamp | 1.1 | System | Every 15 Minutes | Runs the Start-BackgroundStamp.ps1 script to update or create the lockscreen background. |
| OAL - Mapping and redirection | 6.0 | User | At Log On | Runs the Start-UNCShareMapping.ps1 script |
| OAL - Stop Driver UAC | 1.0 | System | At Log On | Runs the Stop-DriverUAC.ps1 |
| OAL - Idle Logoff | 3.0 | User | At Log On | Runs the idlelogoff.exe |
| OAL - Logit at Logoff | 2.0 | System | At Log Off | Runs the logit2.exe to update Worksation Status |
| OAL - Profile Cleanup | 1.0 | System | At Log On | Runs the ProfileCleanup.exe |
| OAL - Get IP Address | 1.0 | System | Every Hour | Runs the Get-IPAddress.ps1 script |
| OAL - Remove Pharos Debug File | 1.0 | System | At Log On | Runs the Remove-PharosDebugFile.ps1 script |
| OAL - Remove Unwanted Icons | 1.0 | System | At Log On | Runs the Remove-UnwantedIcons.ps1 script |
| OAL - Saturday Restarts | 1.0 | System | Every Saturday at 4am | Forces a restart of the computer |